package com.ruoyi.airspaceFlight.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 机构或个人持有设备信息对象 t_institution_person_device
 * 
 * @author ruoyi
 * @date 2023-11-03
 */
public class TInstitutionPersonDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.ASSIGN_UUID)
    private String releationId;

    /** 机构或个人id */
    @Excel(name = "机构或个人id")
    private String institutionPersonId;

    /** 设备id */
    @Excel(name = "设备id")
    private String deviceId;



    /** 机构或个人id */
    @Excel(name = "机构名称")
    private String institutionName;

    public String getInstitutionName() {
        return institutionName;
    }

    public void setInstitutionName(String institutionName) {
        this.institutionName = institutionName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public TInstitutionPersonDevice(String institutionName, String name) {
        this.institutionName = institutionName;
        this.name = name;
    }

    /** 机构或个人id */
    @Excel(name = "个人名称")
    private String name;

    public void setReleationId(String releationId) 
    {
        this.releationId = releationId;
    }

    public String getReleationId() 
    {
        return releationId;
    }
    public void setInstitutionPersonId(String institutionPersonId) 
    {
        this.institutionPersonId = institutionPersonId;
    }

    public String getInstitutionPersonId() 
    {
        return institutionPersonId;
    }
    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("releationId", getReleationId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("institutionPersonId", getInstitutionPersonId())
            .append("deviceId", getDeviceId())
            .toString();
    }
}
